<?php
/**
 * Created by PhpStorm.
 * User: chy
 * Date: 2017/11/5
 * Time: 上午3:37
 */?>
<html>
    <head>
        <title>Upload Form</title>
    </head>
    <body>
    <form method="POST" action="<?php echo site_url('c_data/img_upload/'.$result['bac_id']);?>" style="text-align: center" enctype="multipart/form-data">
        <input id="inputSuccess" type="hidden" name="session_user_id" value="<?php echo $_SESSION['user_id']; ?>"/>
        <input id="inputSuccess" type="hidden" name="session_user_name" value="<?php echo $_SESSION['user_name']; ?>"/>
        <input id="inputSuccess" type="hidden" name="session_role_id" value="<?php echo $_SESSION['role_id']; ?>"/>
        <input id="inputSuccess" type="hidden" name="session_logged_in" value="<?php echo $_SESSION['logged_in']; ?>"/>
        <input type="file" name="userfile" size="20"/>
        <br><br>
        名称: <input type="text" name="image_name" value="<?php //echo $result['bac_name'];?>">
        <span class="error">* <?php //echo $nameErr;?></span>
        <br><br>
        <input style="width: 80px;height: 30px;background: #ff8000;color: white" class="btn btn-default" type="submit" name="submit" value="upload"/>
    </form>
    </body>
</html>